package cn.kgc.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ItemCategory implements Serializable {

    private Integer id;
    @NotBlank(message = "名字不能为空")
    private String name;
    @NotNull(message = "pid不能为空")
    private Integer pid;
    private String remark;
}
